#include <string>
using std::string;

typedef unsigned int u32;
//gb2312 to utf8 
void Gb2312ToUtf8(char* pstrOut, u32 dwOutLen, const char* pstrIn, u32 dwInLen);
//utf8 to gb2312 
void Utf8ToGb2312(char* pstrOut, u32 dwOutLen, const char* pstrIn, u32 dwInLen);
//Unicode to Gb2312 
void UnicodeToGb2312(char* pstrOut, u32 dwOutLen, const wchar_t* pstrIn, u32 dwInLen) ;
//utf8 to Unicode 
void Utf8ToUnicode(wchar_t* pstrOut, u32 dwOutLen, const char* pstrIn, u32 dwInLen) ;

string gbToUtf8(const char* pstrIn);
string utToGb23(const char* pstrIn);